<%@ page contentType="text/html;charset=UTF-8"%>
<%@ page isELIgnored="false" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>TMP_ARTICLE</title>
<link rel="stylesheet" type="text/css" href="${ctx}/style/jw/css/jw.css" />
<script src="${ctx}/style/front/js/jquery-1.7.1.min.js" type="text/javascript"></script>
<script type="text/javascript" src="${ctx}/style/jw/js/jw.js"></script> 
<!--分页跳转代码-->
<script type="text/javascript">
function topage(page,id){

	window.location.href="/shed/"+id+"?page="+page;
}
</script>

</head>
<body>
<div style="margin: 10px 0px;">
<a class="jw_btn Jw_custom add" shedate="${shedId}" sortdate="${sortId}">添加文章</a>
<a class="jw_btn Jw_custom deletes" shedate="${shedId}" sortdate="${sortId}">批量删除</a>
</div>
<table class="jw_table jw_table_border">
      <thead>
        <tr>
          <th style="width: 50px;"><input type="checkbox" class="all_selected"/></th>
          <th>文章标题</th>
          <th>发布时间</th>
          <th>发布人</th>
          <th style="width: 96px;">操作</th>
        </tr>
      </thead>
     <%--  <tbody>
      <c:forEach items="${pageView.records}" var="entity">
        <tr class="deleteMark${entity.id}">
          <td><input type="checkbox" name="items" value="${entity.id}"/></td>
          <td>${entity.title}</td>
          <td><fmt:formatDate value="${entity.date}" type="date" dateStyle="default"/></td>
          <td>${entity.username}</td>
          <td>
              <a href="#" class="jw_btn_Modify" title="修改" idate = "${entity.id}" shedate="${shedId}" sortdate="${sortId}"></a>
              <a href="#" class="jw_btn_delete" title="删除" idate = "${entity.id}"></a>
              <a href="#" class="jw_btn_upload" title="查看附件"></a>
          </td>
        </tr>
      </c:forEach>
      </tbody> --%>
      
      <tbody>
        <tr>
          <td><input type="checkbox" name="items"/></td>
          <td>mark</td>
          <td>Tompson</td>
          <td>the_mark7</td>
          <td>
              <a href="#" class="jw_btn_Modify" title="修改"></a>
              <a href="#" class="jw_btn_delete" title="删除"></a>
              <a href="#" class="jw_btn_upload" title="上传附件"></a>
          </td>
        </tr>
        <tr>
          <td><input type="checkbox" name="items"/></td>
          <td>Ashley</td>
          <td>Jacobs</td>
          <td>ash11927</td>
          <td>
              <a href="#" class="jw_btn_Modify" title="修改"></a>
              <a href="#" class="jw_btn_delete" title="删除"></a>
              <a href="#" class="jw_btn_upload" title="上传附件"></a>
          </td>
        </tr>
        <tr>
          <td><input type="checkbox" name="items"/></td>
          <td>Audrey</td>
          <td>Ann</td>
          <td>audann84</td>
          <td>
              <a href="#" class="jw_btn_Modify" title="修改"></a>
              <a href="#" class="jw_btn_delete" title="删除"></a>
              <a href="#" class="jw_btn_upload" title="上传附件"></a>
          </td>
        </tr>
        <tr>
          <td><input type="checkbox" name="items"/></td>
          <td>John</td>
          <td>Robinson</td>
          <td>jr5527</td>
          <td>
              <a href="#" class="jw_btn_Modify" title="修改"></a>
              <a href="#" class="jw_btn_delete" title="删除"></a>
              <a href="#" class="jw_btn_upload" title="上传附件"></a>
          </td>
        </tr>
        <tr>
          <td><input type="checkbox" name="items"/></td>
          <td>Aaron</td>
          <td>Butler</td>
          <td>aaron_butler</td>
          <td>
               <a href="#" class="jw_btn_Modify" title="修改"></a>
              <a href="#" class="jw_btn_delete" title="删除"></a>
              <a href="#" class="jw_btn_upload" title="上传附件"></a>
          </td>
        </tr>
        <tr>
          <td><input type="checkbox" name="items"/></td>
          <td>Chris</td>
          <td>Albert</td>
          <td>cab79</td>
          <td>
              <a href="#" class="jw_btn_Modify" title="修改"></a>
              <a href="#" class="jw_btn_delete" title="删除"></a>
              <a href="#" class="jw_btn_upload" title="上传附件"></a>
          </td>
        </tr>
      </tbody>
      <tfoot>
         <tr>
             <td colspan="5">
               <div class="pagination">
			<a style="cursor: pointer;" onclick="topage2222('1')" title=" 首页">&laquo; 首页</a>
			<c:if test="${pageView.currentpage>pageView.pageindex.startindex}">
				<a style="cursor: pointer;" onclick="topage2222('${pageView.currentpage-1}')" title="上一页">&#60; 上一页</a>
			</c:if>
			<c:if test="${pageView.currentpage<=pageView.pageindex.startindex}">
				<a style="color: gray" title="已经是第一页">&#60; 上一页</a>
			</c:if>
			<c:forEach begin="${pageView.pageindex.startindex}" end="${pageView.pageindex.endindex}" var="wp">
				<c:if test="${pageView.currentpage==wp}">
					<a class="number current">${wp}</a>
				</c:if>
				<c:if test="${pageView.currentpage!=wp}">
					<a style="cursor: pointer;" onclick="topage2222('${wp}')" class="number" title="跳至第${wp}页">${wp}</a>
				</c:if>
			</c:forEach>
			<c:if test="${pageView.currentpage>=pageView.pageindex.endindex}">
				<a style="color: gray" title="已经是最后一页">下一页 &gt;</a>
			</c:if>
			<c:if test="${pageView.currentpage<pageView.pageindex.endindex}">
				<a style="cursor: pointer;" onclick="topage2222('${pageView.currentpage+1}')" title="下一页">下一页 &gt;</a>
			</c:if>
			<a style="cursor: pointer;" onclick="topage2222('${pageView.totalpage}')" title="最后一页"> 尾页&raquo;</a> 
		</div>
             </td>
         </tr>
      </tfoot>
    </table>
</body>
</html>